package com.shop.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.shop.entity.User;
import com.shop.mapper.UserMapper;
import com.shop.service.UserService;

@Service(value = "userServiceImpl")
public class UserServiceImpl implements UserService {

	@Resource
	private UserMapper userMapper;

	@Override
	public User getUserById(int id) {
		return userMapper.findUserById(id);
	}

}
